package com.whd.DIP;

/**
 * @author whd
 * @date 2024/07/19 14:37:28
 */
public abstract class Animal {
    private String name;
    /*
    * 声明一个抽象类
    * */
    public void eat(String foot){
        System.out.println(this.name+"吃了"+foot);
    }

    public void fie(){
        System.out.println(this.name+"飞");
    }

    public void swing(){
        System.out.println(this.name+"游");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
